package com.cyy.dyeing.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cyy.dyeing.model.Plan;
import com.cyy.dyeing.dto.PlanDto;
import com.cyy.dyeing.mapper.PlanMapper;
import com.cyy.dyeing.service.PlanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: cyy
 * @Date: 2024/7/27
 */
@Service
public class PlanServiceImpl extends ServiceImpl<PlanMapper, Plan> implements PlanService {

    @Autowired
    private PlanMapper planMapper;

    @Override
    public List<Plan> planList(PlanDto planDto) {
        List<Plan> list = planMapper.findList(planDto);
        return list;
    }

    @Override
    public Integer getXh(PlanDto planDto) {
        return planMapper.getXh(planDto);
    }
}
